<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><@s.message 'home.title'/></title>
    <script type="text/javascript" src="<@s.url '/resources/common/jart/jquery-1.6.2.min.js'/>"></script>
    <script type="text/javascript" src="<@s.url '/resources/common/jart/jart.js'/>"></script>
    <link rel="stylesheet" type="text/css" href="<@s.url '/resources/layout/css/style.css'/>"/>
<@block name="styles"></@block>
</head>
<body>
<div id="wrapper">
    <div id="top-menu">
        <div id="logo" style="float:left">
            <a href="<@s.url '/dashboard'/>"> <img src="<@s.url '/resources/common/images/xunfeilogo.png'/>" title="主页" height=20 width="80"> </a>
        </div>
        <div id="account">
            <ul>
                <li><a href="<@s.url '/dashboard'/>" class="login">返回主页</a></li>
            <@shiro.guest>
                <li><a href="<@s.url '/login'/>" class="login"><@s.message 'operation.login'/></a></li>
                <li><a href="<@s.url '/account/register'/>" class="register"><@s.message 'home.account.register'/></a></li>
			</@shiro.guest>
			<@shiro.user>
                <li><a href="<@s.url '/account/profile'/>" class="login"><@shiro.principal/></a></li>
                <li><a href="<@s.url '/account/chpwd'/>" class="login"><@s.message 'home.account.modifypwd'/></a></li>
                <li><a href="#" id="logout" class="logout"><@s.message 'operation.logout'/></a></li>
			</@shiro.user>
            </ul>
        </div>
    </div>
    <div id="header">
        <div id="main-menu">
            <ul>
			<#if current??>
                <li><a id="p_dashboard"  name="概述" href="<@s.url '/project/p_dashboard/'/>${code}"/><span id="mainbg">&nbsp;</span>概述</a></li>
                <li><a id="issue"  name="反馈" href="<@s.url '/project/issue/list/'/>${code}"/>反馈</a></li>
                <li><a id="new_issue"  name="新建反馈" href="<@s.url '/project/issue/add/'/>${code}"/>新建反馈</a></li>
                <li><a id="milestone"  name="里程碑" href="<@s.url '/project/milestone/list/'/>${code}"/>里程碑</a></li>
			</#if>
            </ul>
        </div>
        <@shiro.hasAnyRoles name="Admin,User,Leader">
        <div id="quick-search">
            <form accept-charset="UTF-8" id="quick-search-form" action="<@s.url '/search'/>" method="get">
                <div style="margin:0;padding:0;display:inline"></div>
                <label for="q">
                    <a href="<@s.url '/search'/>" accesskey="4"><@s.message 'operation.search'/></a>:
                </label>
                <input accesskey="f" id="q" art="textbox" name="q" emptyText="<@s.message 'tip.issue.search'/>" name="q"
                       size="20" type="text">
            </form>
        </div>
        </@shiro.hasAnyRoles>
        <h1><@block name="project"></@block></h1>
    </div>
<#--关闭工具条样式-->
    <div id="main" class="nosidebar">
        <div id="content">
            <div id="g_msg" class="msg_info hidden"></div>
		<@block name="main"></@block>
        </div>
    </div>

    <div id="footer">
        <div class="bgl">
            <div class="bgr">
                Powered by <a href="http://www.iflytek.com">Cdms</a> <@s.message 'home.copyright'/>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="<@s.url '/resources/common/plugins/jquery.form.js'/>"></script>
<script type="text/javascript" src="<@s.url '/resources/common/plugins/jquery.utils.min.js'/>"></script>
<script type="text/javascript">
//    (function(){ var toolscript = document.createElement('script'); toolscript.type = 'text/javascript'; toolscript.async = true; toolscript.src='http://192.168.83.92:8888/cdms/action/tools/cdms_1_0_B_tools.js'; var firstNode = document.getElementsByTagName('script')[0]; firstNode.parentNode.insertBefore(toolscript, firstNode); })();
</script>
<script type="text/javascript" src="<@s.url '/resources/common/javascript/common.js'/>?ver=<@s.message 'system.version'/>"></script>
<script type="text/javascript" src="<@s.url '/resources/common/message/zh_CN.js'/>?ver=<@s.message 'system.version'/>"></script>
<script type="text/javascript">
    var C_URI='<@s.url '/'/>';
    var system_vars = {
        basePath:'<@s.url '/'/>'
    };
    $(document).ready(function () {
        $('#${current}').addClass('selected');
        $('#wrapper').click(function () {
            $('#g_msg').hide();
        });
        $('#q').bind('keyup', function (env) {
            if (event.keyCode == 13) {
				$('#quick-search-form').submit();
            }
        });
		$('#logout').click(function(){
			cdms.common.cleanup_cookie();
			window.location.href = '<@s.url '/logout'/>';
        })
    })
</script>
<@block name="scripts"></@block>
</body>
</html>